//
//  NLComposeView.swift
//  sinaWeibo7110
//
//  Created by 安静清晨 on 2017/1/12.
//  Copyright © 2017年 walk-in-minds. All rights reserved.
//

import UIKit

class NLComposeView: UIView {


    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = UIColor.clear
        setupUI()
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    
    
    func setupUI(){
        
        
        let i = UIImageView(image: UIImage.snapshotCurrentScreen())
        self.addSubview(i)
        
        let toolBar = UIToolbar(frame: self.bounds)
        addSubview(toolBar)
        
        
    }
    
    
    
    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        
        self.removeFromSuperview()
        
    }
    
    
    
    

}
